package org.dandsoft.blackbox.laboratory.samples.lighter;

/**
 * Created by IntelliJ IDEA.
 * User: dvilyuzhanin
 * Date: 23.03.2009 19:33:49
 */
public class Lighter {
    private World world;
    private LightSensor top = new LightSensor(LightSensor.TOP_TYPE, this);
    private LightSensor right = new LightSensor(LightSensor.RIGHT_TYPE, this);
    private LightSensor bottom = new LightSensor(LightSensor.BOTTOM_TYPE, this);
    private LightSensor left = new LightSensor(LightSensor.LEFT_TYPE, this);
    private int x;
    private int y;

    public Lighter(World world) {
        this.world = world;
    }

    public LightSensor getTop() {
        return top;
    }

    public LightSensor getRight() {
        return right;
    }

    public LightSensor getBottom() {
        return bottom;
    }

    public LightSensor getLeft() {
        return left;
    }

    public World getWorld() {
        return world;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
